<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->

<!DOCTYPE html>
<html>
<head>
<title>Chome Web Server</title>
<!-- For-Mobile-Apps -->







<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<script type="text/javascript">
    //*****************************************************************************************************************庭院灯1
function wbutt1on()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","http://1.cchome.applinzi.com/androiddata.php?state=1&ID=1",true);
xmlhttp.send();
}


function wbutt1off()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","http://1.cchome.applinzi.com/androiddata.php?state=2&ID=1",true);
xmlhttp.send();
}
    //*****************************************************************************************************************
    //*****************************************************************************************************************灯光总控

function wbutt2on()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","http://1.cchome.applinzi.com/androiddata.php?state=1&ID=2",true);
xmlhttp.send();
}

//灯控1 off
function wbutt2off()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","http://1.cchome.applinzi.com/androiddata.php?state=2&ID=2",true);
xmlhttp.send();
}

    //*****************************************************************************************************************门灯控制id=3
function wbutt3on()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","http://1.cchome.applinzi.com/androiddata.php?state=1&ID=3",true);
xmlhttp.send();
}

//灯控1 off
function wbutt3off()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","http://1.cchome.applinzi.com/androiddata.php?state=2&ID=3",true);
xmlhttp.send();
}    

    
     //********************************************************************************************************车库门控制
function wbutt4on()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","http://1.cchome.applinzi.com/androiddata.php?state=1&ID=4",true);
xmlhttp.send();
}

//灯控1 off
function wbutt4off()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","http://1.cchome.applinzi.com/androiddata.php?state=2&ID=4",true);
xmlhttp.send();
}
//********************************************************************************************************
//********************************************************************************************************一键布防

function wbutt5on()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","http://1.cchome.applinzi.com/androiddata.php?state=1&ID=5",true);
xmlhttp.send();
}

//灯控1 off
function wbutt5off()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","http://1.cchome.applinzi.com/androiddata.php?state=2&ID=5",true);
xmlhttp.send();
}

//********************************************************************************************************休眠模式
    function wbutt6on()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","http://1.cchome.applinzi.com/androiddata.php?state=1&ID=6",true);
xmlhttp.send();
}


function wbutt6off()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","http://1.cchome.applinzi.com/androiddata.php?state=2&ID=6",true);
xmlhttp.send();
}
</script>







<!-- //For-Mobile-Apps -->
<!-- Style --> <link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
</head>
<body>
<div class="container">
  <h3 align="center">
    <label> Chome Web Server</label>
  </h3>
</div>
<div class="container">

 

</div>
<div align="center">
  
  <textshow>庭院灯控</textshow>
  <button type="button" onclick="wbutt1on()">Open</button>
  <button type="button" onclick="wbutt1off()">Close</button>

</div>


<div class="container1">

 

</div>


</div>
<div align="center">
  
  <textshow>灯光总控</textshow>
  <button type="button" onclick="wbutt2on(),wbutt1on(),wbutt3on()">Open</button>
  <button type="button" onclick="wbutt2off(),wbutt1off(),wbutt3off()">Close</button>

</div>

<div class="container1">

 

</div>


</div>
<div align="center">
  
  <textshow>门灯控制</textshow>
   <button type="button" onclick="wbutt3on()">Open</button>
  <button type="button" onclick="wbutt3off()">Close</button>

</div>

<div class="container1">

 

</div>


</div>
<div align="center">
  
  <textshow>车库门控</textshow>
 <button type="button" onclick="wbutt4on()">Open</button>
  <button type="button" onclick="wbutt4off()">Close</button>

</div>

<div class="container1">

 

</div>


</div>
<div align="center">
  
  <textshow>一键布防</textshow>
   <button type="button" onclick="wbutt5on()">Open</button>
  <button type="button" onclick="wbutt5off()">Close</button>

</div>

<div class="container1">
</div>
<div align="center">
  
  <textshow>休眠模式</textshow>
  <button type="button" onclick="wbutt6on()">Open</button>
  <button type="button" onclick="wbutt6off()">Close</button>

</div>
</body>
</html>